<script setup>
import PageLayout from "@/components/Layout/PageLayout/PageLayout.vue";
import LeftBtm1 from "./components/LeftBtm1/LeftBtm1.vue";
import LeftBtm2 from "./components/LeftBtm2/LeftBtm2.vue";
import LeftBtm3 from "./components/LeftBtm3/LeftBtm3.vue";
import LeftTop1 from "./components/LeftTop1/LeftTop1.vue";
import LeftTop2 from "./components/LeftTop2/LeftTop2.vue";
import RightBtm from "./components/RightBtm/RightBtm.vue";
import RightTop from "./components/RightTop/RightTop.vue";
import { getOpt } from "./options/MockData.js";
import bus from "@/utils/bus.js";
import { onMounted } from "vue";
const getMock = async () => {
  const mockdata = await getOpt("state");
  bus.emit("useMock", mockdata);
};
onMounted(() => {
  getMock();
});
</script>

<template>
  <PageLayout>
    <template #left>
      <div class="left com-flex-c">
        <div class="com-flex-1 com-flex-r back">
          <div class="top-left">
            <LeftTop1 />
          </div>
          <div class="com-flex-1">
            <LeftTop2 />
          </div>
        </div>
        <div class="com-flex-1 com-flex-r">
          <div class="top-left">
            <LeftBtm1 />
          </div>
          <div class="com-flex-1">
            <LeftBtm2 />
          </div>
          <div class="bottom-left">
            <LeftBtm3 />
          </div>
        </div>
      </div>
    </template>
    <template #right>
      <div class="right com-flex-c">
        <div class="com-flex-1 com-flex-r">
          <RightTop />
        </div>
        <div class="com-flex-1 com-flex-r">
          <RightBtm />
        </div>
      </div>
    </template>
  </PageLayout>
</template>

<style scoped lang="scss">
.home-page {
  position: relative;
  // background-color: rgba(0, 242, 255, 0.193);
  justify-content: space-between;
}

.left {
  width: 2050px;
  height: 100%;
}

.right {
  width: 1450px;
  height: 100%;
}

.top-left {
  width: 33%;
  height: 100%;
  margin-right: 20px;
}

.bottom-left {
  width: 15%;
  height: 100%;
  margin-left: 20px;
}
</style>
